package com.bo.enity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 配比管理明细
 * @Author: outes-boot
 * @Date:   2024-11-26
 * @Version: V1.0
 */
@Data
@TableName("base_ratio_management_detail")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="base_ratio_management_detail对象", description="标准配比管理")
public class BaseRatioManagementDetail implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**主表id*/
	@Excel(name = "主表id", width = 15)
    @ApiModelProperty(value = "主表id")
    private String mainId;
	/**编号*/
	@Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String ratioCode;
    /**配比号*/
    @Excel(name = "配比号", width = 15)
    @ApiModelProperty(value = "调整号-原配比号")
    private String originallyRatioCode;
	/**物料编码*/
	@Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
    private String materialCode;
    /**中转仓*/
    @Excel(name = "中转仓", width = 15)
    @ApiModelProperty(value = "中转仓")
    private String transferWarehouse;
	/**物料名称*/
	@Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
    private String materialName;
	/**配比值*/
	@Excel(name = "配比值", width = 15)
    @ApiModelProperty(value = "配比值")
    private BigDecimal ratioNum;
	/**含水*/
	@Excel(name = "含水", width = 15)
    @ApiModelProperty(value = "含水")
    private BigDecimal waterRate;
	/**施工值*/
	@Excel(name = "施工值", width = 15)
    @ApiModelProperty(value = "施工值")
    private BigDecimal constNum;
	/**最大值*/
	@Excel(name = "最大值", width = 15)
    @ApiModelProperty(value = "最大值")
    private BigDecimal maxNum;
    /**最小值*/
    @Excel(name = "最小值", width = 15)
    @ApiModelProperty(value = "最小值")
    private BigDecimal minNum;
	/**砂浆*/
	@Excel(name = "砂浆", width = 15)
    @ApiModelProperty(value = "砂浆")
    private BigDecimal mortarNum;
	/**材料种类*/
	@Excel(name = "材料种类", width = 15)
    @ApiModelProperty(value = "材料种类")
    private String categoryId;
	/**规格*/
	@Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String spec;
	/**供应商*/
	@Excel(name = "供应商", width = 15)
    @ApiModelProperty(value = "供应商")
    private String supplierCode;
	/**供应商*/
	@Excel(name = "供应商", width = 15)
    @ApiModelProperty(value = "供应商")
    private String supplierName;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**序号*/
    @Excel(name = "序号", width = 15)
    @ApiModelProperty(value = "序号")
    private Integer sort;
    /**标记，是否为历史配比*/
    @Excel(name = "标记", width = 15)
    @ApiModelProperty(value = "标记，是否为历史配比")
    private String status;
	/**操作人*/
    @ApiModelProperty(value = "操作人")
    private String updateBy;
	/**操作时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "操作时间")
    private Date updateTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户号*/
	@Excel(name = "租户号", width = 15)
    @ApiModelProperty(value = "租户号")
    private Integer tenantId;
	/**乐观锁*/
	@Excel(name = "乐观锁", width = 15)
    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer updateCount;
	/**是否删除;0表示未删除,1表示删除*/
	@Excel(name = "是否删除;0表示未删除,1表示删除", width = 15)
    @ApiModelProperty(value = "是否删除;0表示未删除,1表示删除")
    @TableLogic
    private Integer delFlag;
	/**删除人*/
	@Excel(name = "删除人", width = 15)
    @ApiModelProperty(value = "删除人")
    private String deleteBy;
	/**删除时间*/
	@Excel(name = "删除时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "删除时间")
    private Date deleteTime;
}
